# coding:utf-8

from django.conf.urls import patterns, include, url
from hlr_django import settings
from rest_framework.authtoken import views
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'hlr_django.views.home', name='home'),
    # url(r'^hlr_django/', include('hlr_django.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'^token', 'token_auth.views.token'),
    url(r'^comperes','compere.views.comperes'),
    url(r'^user','userinfo.views.user'),
    # 收藏、关注主持人
    url(r'^focus','userinfo.views.focus'),
    # 头像
    url(r'^avatar','userinfo.views.avatar'),
    # 档期
    # url(r'^schedule','userinfo.views.schedule'),
    url(r'^schedule','userinfo.views.schedule'),
    # 相册
    url(r'^photo','userinfo.views.photo'),
    # 删除相册
    url(r'^removephoto','userinfo.views.remove_photo'),
    # 声音
    url(r'^voice','userinfo.views.voice'),
    # POST 更改用户信息
    url(r'^update','userinfo.views.update'),
    url(r'^forget','userinfo.views.reset_password'),
)


urlpatterns += [
    url(r'^api-token-auth/', views.obtain_auth_token)
]
if settings.DEBUG:
    urlpatterns += patterns('',
        url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root':settings.MEDIA_ROOT}),
    )